Integer-related fixes for term.c etc.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Nov 2013 00:14:56 +0000 (16:14 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Nov 2013 00:14:56 +0000 (16:14 -0800)
commitd69072e547ef2c4a23a2a885e70f2b5a9d5bacc1
treeb61982798b2de40165d1bae0fbe802ab77ff5da1
parent68056f995e72ec53bbecf317cbb0baea0576f964
Integer-related fixes for term.c etc.

* dispextern.h (face_tty_specified_color): New function.
* term.c (turn_on_face): Don't rely on undefined behavior when
assigning an out-of-range value to 'long'.  Simplify
test for toggling highlight.
(tty_capable_p): Omit last two (unused) args.  All callers changed.
* term.c (tty_capable_p, tty_menu_display, tty_menu_add_selection)
(read_menu_input, tty_menu_activate, tty_menu_show):
* xfaces.c (x_supports_face_attributes_p)
(tty_supports_face_attributes_p):
Use bool for boolean.  All callers changed.
(tty_supports_face_attributes_p): Omit defaults for color indices;
no longer needed.  Simplify tail call.
src/ChangeLog
src/dispextern.h
src/menu.h
src/term.c
src/xfaces.c